<?php


namespace App\Http\Controllers\Api;


use App\Contracts\IApi;
use App\Http\Controllers\Controller;
use App\Model\Repository\ApiRepository;
use Illuminate\Http\Request;

/**
 * Class DebugController
 * @package App\Http\Controllers\Api
 */
class DebugController extends Controller
{
    /**
     * @param Request $request
     * @param IApi $api
     * @param int $api_id
     */
    public function apiTest(Request $request, IApi $api, int $api_id)
    {
        return $api->debug($request, ApiRepository::find($api_id));
    }
}